package com.wywah.test1;

import org.springframework.web.bind.annotation.*;

import java.util.Map;

@RestController
public class TestController {

    @GetMapping("test")
    public String get(){
        return "GET -> Test1";
    }


    @PostMapping(value = "test1")
    public Map<String, Object> get2(@RequestBody Map<String, Object> map, @RequestHeader("access_token") String token){
        map.put("Test1 info"," post -> test1");
        map.put("access_token", token);
        return map;
    }
}
